<?php

class ENBaseActiveRecord extends CActiveRecord
{
    public static $_connection = null;

    public function getDbConnection()
    {
        if (!self::$_connection) {
            throw new ExceptionNotificationException("can' find the db connection");
        }

        return self::$_connection;
    }

}
